/**********************************************************************************
// Timer Header File
// 
// Creation:	02 Abr 2011
// Updated:		01 Jun 2011
// Compiler:	Visual Studio 2010
//
// Notes:		Time tracking class
//
**********************************************************************************/

#ifndef _ANABELE_TIMER_H_
#define _ANABELE_TIMER_H_

// make classes and functions exportable to a DLL
#ifdef ANABELE_EXPORTS
#define DLL __declspec( dllexport ) 
#else
#define DLL __declspec( dllimport )
#endif 

/**********************************************************************************/

#include "Types.h"			// custom engine types
#include <Windows.h>		// Windows high frequency timer

/**********************************************************************************/

class DLL Timer
{
public:
	LARGE_INTEGER start, end;			// start and end values of high frequency counter
	LARGE_INTEGER freq;					// frequency of counter
	
public:
	Timer();							// constructor

	void  Start();						// start timer
	float Elapsed();					// get elapsed time in seconds	
}; 

#endif